package com.ruoyi.wms.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 货品库位信息对象 wms_item_location
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class WmsItemLocation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 租户ID */
    @Excel(name = "租户ID")
    private Long tenantId;

    /** 货品ID */
    @Excel(name = "货品ID")
    private Long itemId;

    /** 库位ID */
    @Excel(name = "库位ID")
    private Long locationId;

    /** 推荐优先级：数值越小优先级越高 */
    @Excel(name = "推荐优先级")
    private Integer priority;

    /** 是否推荐：0-否，1-是 */
    @Excel(name = "是否推荐", readConverterExp = "0=否,1=是")
    private Integer isRecommended;

    /** 最大容量限制 */
    @Excel(name = "最大容量限制")
    private BigDecimal maxCapacity;

    /** 容量单位 */
    @Excel(name = "容量单位")
    private String unit;

    /** 存储规则说明 */
    @Excel(name = "存储规则说明")
    private String storageRule;

    /** 状态：0-禁用，1-启用 */
    @Excel(name = "状态", readConverterExp = "0=禁用,1=启用")
    private Integer status;

    /** 物料编码 */
    private String itemCode;

    /** 物料名称 */
    private String itemName;

    /** 库位编码 */
    private String locationCode;

    /** 库位名称 */
    private String locationName;

    /** 仓库名称 */
    private String warehouseName;

    /** 区域名称 */
    private String areaName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setLocationId(Long locationId) 
    {
        this.locationId = locationId;
    }

    public Long getLocationId() 
    {
        return locationId;
    }
    public void setPriority(Integer priority) 
    {
        this.priority = priority;
    }

    public Integer getPriority() 
    {
        return priority;
    }
    public void setIsRecommended(Integer isRecommended) 
    {
        this.isRecommended = isRecommended;
    }

    public Integer getIsRecommended() 
    {
        return isRecommended;
    }
    public void setMaxCapacity(BigDecimal maxCapacity) 
    {
        this.maxCapacity = maxCapacity;
    }

    public BigDecimal getMaxCapacity() 
    {
        return maxCapacity;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setStorageRule(String storageRule) 
    {
        this.storageRule = storageRule;
    }

    public String getStorageRule() 
    {
        return storageRule;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setItemCode(String itemCode) 
    {
        this.itemCode = itemCode;
    }

    public String getItemCode() 
    {
        return itemCode;
    }

    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }

    public void setLocationCode(String locationCode) 
    {
        this.locationCode = locationCode;
    }

    public String getLocationCode() 
    {
        return locationCode;
    }

    public void setLocationName(String locationName) 
    {
        this.locationName = locationName;
    }

    public String getLocationName() 
    {
        return locationName;
    }

    public void setWarehouseName(String warehouseName) 
    {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseName() 
    {
        return warehouseName;
    }

    public void setAreaName(String areaName) 
    {
        this.areaName = areaName;
    }

    public String getAreaName() 
    {
        return areaName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("itemId", getItemId())
            .append("locationId", getLocationId())
            .append("priority", getPriority())
            .append("isRecommended", getIsRecommended())
            .append("maxCapacity", getMaxCapacity())
            .append("unit", getUnit())
            .append("storageRule", getStorageRule())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}